import { createStore } from 'vuex'


const store = createStore({
  state: {
    activeIndex: '', // 顶部导航索引
  },
  mutations: {
    setActiveIndex(state,data){ 
      state.activeIndex = data
    }
  }
})
export default store